﻿/* ==============================================================================
* 功能描述：Player
* 创 建 者：青金石
* 创建日期：2020/5/26 11:48:36
* ==============================================================================*/

using TCPServer.script.net;

//玩家临时数据
public class Player
{
    //id
    public string id = "";

    public ClientState state;

    //玩家战绩
    public PlayerData data;

    //坐标和旋转
    public float x;

    public float y;
    public float z;
    public float ex;
    public float ey;
    public float ez;

    //生命值
    public int hp = 100;

    // 所在房间
    public int roomID = -1;

    //所属阵营
    public int camp = 1;

    public Player(ClientState state)
    {
        this.state = state;
    }

    public void Send(MsgBase msgBase)
    {
        NetManager.Send(state, msgBase);
    }
}